﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Edit.Master" Inherits="System.Web.Mvc.ViewPage<Langben.DAL.Book>" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="Models" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CurentPlace" runat="server">
    修改预订
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <input class="a2 f2" type="submit" value="修改" />
            <input class="a2 f2" type="button" onclick="BackList('Book')" value="返回列表" />
        </legend>
        <div class="bigdiv">
            <%: Html.HiddenFor(model => model.RowGuid ) %><%: Html.HiddenFor(model => model.CreateTime ) %><%: Html.HiddenFor(model => model.CreatePerson ) %>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('BuyerId','../../Buyer');">
                    <%: Html.LabelFor(model => model.BuyerId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkBuyerId">
                    <%  if (Model != null)
                        {
                            if (null != Model.BuyerId)
                            {%>
                    <table id="<%: Model.BuyerId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: Model.BuyerId %>','BuyerId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.Buyer.BuyerName%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.BuyerId)%>
            </div>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showChooseModal('CemeteryId','CemeteryName','../../Cemetery/Choose');">
                    <%: Html.LabelFor(model => model.CemeteryName) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkCemeteryId">
                    <%  if (Model != null)
                        {
                            if (null != Model.CemeteryId)
                            {%>
                    <table id="<%: Model.CemeteryId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteChooseTable('<%: Model.CemeteryId %>','CemeteryId','CemeteryName');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.CemeteryName%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.CemeteryName)%>
            </div>
            <div class="editor-label" style="display: none">
                <%: Html.LabelFor(model => model.CemeteryId) %>：
            </div>
            <div class="editor-field" style="display: none">
                <%: Html.EditorFor(model => model.CemeteryId) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryId) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CemeteryNo) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.CemeteryNo) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryNo) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CemeteryShape) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.CemeteryShape) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryShape) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BuriedType) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.BuriedType) %>
                <%: Html.ValidationMessageFor(model => model.BuriedType) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CemeteryPrice) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.CemeteryPrice) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryPrice) %>
            </div>
             <div class="editor-label">
                <a class="anUnderLine" onclick="showModalMany('BuriedPeopleRowGuid','../../BuriedPeople');">
                    <%: Html.LabelFor(model => model.BuriedPeopleRowGuid) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkBuriedPeopleRowGuid">
                    <% string ids17 = string.Empty;
                       if (Model != null)
                       {
                           foreach (var item17 in Model.BuriedPeople)
                           {
                               string item171 = string.Empty;
                               item171 += item17.RowGuid + "&" + item17.IsBury;
                               if (ids17.Length > 0)
                               {
                                   ids17 += "^" + item171;
                               }
                               else
                               {
                                   ids17 += item171;
                               }
                    %>
                    <table id="<%: item171 %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: item171 %>','BuriedPeopleRowGuid');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: item17.IsBury %>
                            </td>
                        </tr>
                    </table>
                    <%}
                }%>
                    <input type="hidden" value="<%= ids17 %>" name="BuriedPeopleRowGuidOld" id="BuriedPeopleRowGuidOld" />
                    <input type="hidden" value="<%= ids17 %>" name="BuriedPeopleRowGuid" id="BuriedPeopleRowGuid" />
                </div>
            </div>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('ApplicantsId','../../Applicants');">
                    <%: Html.LabelFor(model => model.ApplicantsId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkApplicantsId">
                    <%  if (Model != null)
                        {
                            if (null != Model.ApplicantsId)
                            {%>
                    <table id="<%: Model.ApplicantsId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: Model.ApplicantsId %>','ApplicantsId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.Applicants.Name%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.ApplicantsId)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BookPrice) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.BookPrice) %>
                <%: Html.ValidationMessageFor(model => model.BookPrice) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BookDataCount) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.BookDataCount, new {  onkeyup = "isInt(this)", @class="text-box single-line" })%>
                <%: Html.ValidationMessageFor(model => model.BookDataCount) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Prompt) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.Prompt) %>
                <%: Html.ValidationMessageFor(model => model.Prompt) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Remark) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.Remark) %>
                <%: Html.ValidationMessageFor(model => model.Remark) %>
            </div>
           
        </div>
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

    <script type="text/javascript">

        $(function () {


        });


    </script>
</asp:Content>

